<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class RequestRecords extends Model
{
    protected $autoWriteTimestamp = 'datetime';
    
    // 设置当前模型对应的完整数据表名称
    protected $table = 'request_records';

    // 设置字段信息
    protected $schema = [
        'type'                  => 'integer',
        'shop_order'            => 'string',
        'request'               => 'text',
        'response'              => 'text',
        'create_time'           => 'datetime',
        'update_time'           => 'datetime'
    ];

    // 设置字段自动转换类型
    protected $type = [
        'update_time'       => 'datetime',
        'create_time'       => 'datetime',
    ];
}
